projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f22226b
)
menu: notify attach-widget property when menu is detached
author
Cosimo Cecchi
<cosimoc@gnome.org>
Thu, 5 Jul 2012 17:21:03 +0000
(13:21 -0400)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Fri, 6 Jul 2012 15:14:15 +0000
(11:14 -0400)
When the menu is detached, the attach-widget property changes value to
NULL, so we should notify a property change, like
gtk_menu_attach_to_widget() does.
https://bugzilla.gnome.org/show_bug.cgi?id=679454
gtk/gtkmenu.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmenu.c
b/gtk/gtkmenu.c
index b0912f9e85a154b21196af85b40ebf229ca1d72f..88f55f9a87ec7aa559115922473ca71640d6dc81 100644
(file)
--- a/
gtk/gtkmenu.c
+++ b/
gtk/gtkmenu.c
@@
-1297,6
+1297,7
@@
gtk_menu_detach (GtkMenu *menu)
/* Fallback title for menu comes from attach widget */
gtk_menu_update_title (menu);
+ g_object_notify (G_OBJECT (menu), "attach-widget");
g_object_unref (menu);
}